package com.central.log.properties;

import com.zaxxer.hikari.HikariConfig;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 日志存储到数据库配置。
 * 读取配置：
 * my-config:
 *  audit-log:
 *   datasource:
 *       driver-class-name: com.mysql.cj.jdbc.Driver
 *       jdbc-url: jdbc:mysql://ip:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
 *       username: xxx
 *       password: xxx
 * @author: ly
 * @date: 2020/11/13 1:19 下午
 * @email: 664162337@qq.com
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "my-config.audit-log.datasource")
public class LogDbProperties extends HikariConfig {

}
